package com.zbkj.front.config;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface PreventDuplicate {
    String value();  //防重主键
    int timeout() default 3;  //接口提交间隔时间  0表示执行完立马释放锁
    /* TODO 实现不同范围的防重
    public int scope() default 1;
    public static int SCOPE_GLOBAL = 1;
    public static int SCOPE_SESSION = 2;
    public static int SCOPE_HOST = 3;
    */
}
